<template>
  <div id="app">

  <div v-if="this.$route.meta.keepAlive">
    <homeHeader/>
  </div >
    
    <router-view v-if="isRouterAlive"/>
  </div>
</template>

<script>


import homeHeader from "./pages/Header/header.vue"

export default {
  name: 'App',
  provide(){
    return{
      reload:this.reaload
    }
  },
  data(){
    return{
      isRouterAlive:true
    }
  },
  components:{homeHeader},
  methods: {
    reload(){
      this.isRouterAlive=false
      this.$nextTick(function(){
        this.isRouterAlive=true
      })
    }
  },
}
</script>

<style>

</style>
